<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="/WEB-INF/FCKeditor.tld" prefix="FCK"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>添加公告</title>
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/N13FormValidation-2.js"></script>

		<script type="text/javascript"
			src="<%=request.getContextPath()%>/FCKeditor/fckeditor.js"></script>
	</head>

	<body>
		<div id="page_container">
			<%@include file="nav.jsp"%>
			<h2>
				添加公告
			</h2>
			<s:form id="saform"
				action="systemannouncement/insertsystemannouncement.action"
				method="post" theme="simple">
				<s:hidden name="sa.systemannouncementind" value="1"></s:hidden>

				<s:hidden name="sa.systemannouncementposter" value="Neo"></s:hidden>
				*公告标题：<s:textfield id="satitle" name="sa.systemannouncementtitle"
					size="70" maxlength="50"></s:textfield>
				<br/>
				<s:textarea id="sacontent" name="sa.systemannouncementcontent"
					cols="45" rows="6"></s:textarea>
				<script type="text/javascript">
var oFCKeditor = new FCKeditor('sacontent') ;
oFCKeditor.BasePath = "FCKeditor/" ;
oFCKeditor.Height = 350;
oFCKeditor.ToolbarSet = "Basic" ;
oFCKeditor.ReplaceTextarea();
</script>
				<s:submit cssClass="common_button" value="提交"></s:submit>

			</s:form>
			<script type="text/javascript">
N13.register('saform',[
		{
         id:'satitle',                                 
         type:'Required',                                        
         validMsg:'√',                                             
         invalidMsg:'请不要为空',                                
         validOnBlur:true,                                       
         renderValid:true                                        
     },
	]);
window.onload = function(){
	var nav_a=$j('#page_nav a');
	var nav_span=$j("#page_nav a span");
	for(var u = 0 ;u<nav_a.length;u++){
			nav_a.get(u).style.backgroundPosition="left top";
			nav_span.get(u).style.backgroundPosition="right top";							
	}
	$j('#page_nav a').get(0).style.backgroundPosition="0% -42px";
	$j("#page_nav a span").get(0).style.backgroundPosition="100% -42px";
}	
			</script>
		</div>
	</body>
</html>
